<?php
require_once dirname(__FILE__) . '/../common/HTMLDocument.php';
require_once dirname(__FILE__) . '/LoginController.php';
require_once dirname(__FILE__) . '/../common/Database.php';

session_start();
$title = "Hem";
$body ='';

$db = new Database();
$db->Connect(new DBConfig());
$lh = new LoginHandler($db);
$loginCtr = new LoginController($db, $lh);
$body .= $loginCtr->doController();
$db->Close();
$hd = new HTMLDocument();
echo $hd->GetHTMLDocument($title, $body);